 $(function () {
	$("#btnclick2").click(function(){
		var chk1=getRadioValue("radioName1");
		var chk2=getRadioValue("radioName2");
		var chk3=getRadioValue("radioName3");
		var chk4=getRadioValue("radioName4");
		var chk5=getRadioValue("radioName5");
		var chk6=getRadioValue("radioName6");
		var chk7=getRadioValue("radioName7");
		var chk8=getRadioValue("radioName8");
		var chk9=getRadioValue("radioName9");
		var chk10=getRadioValue("radioName10");
		var  sum=chk1*1+chk2*1+chk3*1+chk4*1+chk5*1+chk6*1+chk7*1+chk8*1+chk9*1+chk10*1;
		if(isNaN(sum)){
			alert("您有选项没有选");
		}else{
			alert(sum);
		}
	});
	
	function getRadioValue(radioName){
		var Radio=document.getElementsByName(radioName);
		for(var i=0;i<Radio.length;i++){
			if(Radio[i].checked)
			 return Radio[i].value;
			
			 
		}
	}	
})
